﻿package com.sgcc.nfc.lock.presentation.main.viewmodel

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class MainViewModel @Inject constructor() : ViewModel() {

    private val _toolbarTitle = MutableLiveData<String>()
    val toolbarTitle: LiveData<String> = _toolbarTitle

    private val _isBottomBarVisible = MutableLiveData(true)
    val isBottomBarVisible: LiveData<Boolean> = _isBottomBarVisible

    fun setToolbarTitle(title: String) {
        _toolbarTitle.postValue(title)
    }

    fun setBottomBarVisible(visible: Boolean) {
        _isBottomBarVisible.postValue(visible)
    }
}
